<%@ page isELIgnored="false" contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<html>
<head>
    <title>简历列表</title>
</head>
<body>
<a href="${pageContext.request.contextPath }/sys/logout">退出登录</a>
    <div>
        <h2>简历列表</h2>
        <a href="/resume.jsp">新增</a>
        <table border="1">
            <th>id</th>
            <th>地址</th>
            <th>姓名</th>
            <th>电话</th>
            <th>操作</th>
            <c:forEach items="${list}" var="resume">
                <tr>
                    <td>${resume.id}</td>
                    <td>${resume.address}</td>
                    <td>${resume.name}</td>
                    <td>${resume.phone}</td>
                    <td>
                        <a href="${pageContext.request.contextPath }/resume/one?id=${resume.id}">编辑</a>
                        <a href="${pageContext.request.contextPath }/resume/delete?id=${resume.id}">删除</a>
                    </td>
                </tr>
            </c:forEach>
        </table>
    </div>

</body>
</html>
